<template>
  <div>
  用户名<input type="text" v-model='form.username'>
    密码<input type="text" v-model='form.password'>
    <button @click='add'>添加</button>

    </div>
    </template>
    <script>
  export default {
    data(){
      return{
        form:{}
      }
    },
    methods: {
      add(){
        this.axios.post('users/teacherM/',this.form).then(res=>{
          //注册成功后跳转到登录页面
          this.$router.push({path:'/admin'})
        })
      }
    },
  }
  </script>
  <style lang="">

  </style>